package com.i2works.smartluolong.utils.entity;


import java.io.Serializable;

/**
 * 公共Query属性类（带分页属性）
 *
 * @author koal koal@vip.qq.com
 * @date 2015年11月13日 下午10:40:12
 */
public class BaseCommQuery extends BaseCommDO implements Serializable {

    private Long limit = 10L;//每页数量
    private Long offset = 0L;//当前第几页
    private String search;    //搜索关键词
    private boolean isPage = false; //是否分页,false不分页，true分页
    private Integer order; //数据排序

    public Long getLimit() {
        return limit;
    }

    //最大每页500条
    public void setLimit(Long limit) {
        this.limit = limit > 500 ? 500 : limit;
    }


    public boolean getIsPage() {
        return isPage;
    }

    public void setIsPage(boolean isPage) {
        this.isPage = isPage;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public Long getOffset() {
        return offset;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }


    public boolean isPage() {
        return isPage;
    }

    public void setPage(boolean page) {
        isPage = page;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }
}
